package hl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.RepeatMessageComponent;
import com.orion.symphonia3.BadParameterException;

public class EDC_HL7RepFldCM_FN extends RepeatMessageComponent{

	//Constructor
	public EDC_HL7RepFldCM_FN(MessageElement elem) {
		super(elem);
	}

	//Method
	public EDC_HL7FldCM_FN append() {
		return new EDC_HL7FldCM_FN(elem.appendElement());
	}
	
	public EDC_HL7FldCM_FN item(int index) throws BadParameterException {
		if (index >= getElementCount())
			throw new BadParameterException("Index is out of bounds");
		return new EDC_HL7FldCM_FN(elem.getElementAt(index));
	}

}
